package threeGroup.service;

import com.literature.threeGroup.pojo.Menu;
import com.literature.threeGroup.pojo.Purchase;
import com.literature.threeGroup.pojo.PurchaseWithBLOBs;
import com.literature.threeGroup.util.Result;

import java.util.List;

/**
 * @author VULCAN
 * @create 2020-01-07 14:30
 * @desc
 **/
public interface PurchaseService {


    Result addPurchase(PurchaseWithBLOBs purchase);

    Result selectType();

    Result selectCarrier();

    Result selectSubject();

    Result selectCountry();

    Result selectLanguage();

    Result selectCurrency();

    Result selectPubStatus();

    //查询我的荐购列表
    Result queryMyPurchase();
    //荐购审核列表
    Result querysPurchase();
    //确认荐购列表
    Result queryConfirmPurchase();

    //确认荐购
    Result purchaseAgree(String rid);

    List<Purchase> queryPuchase();

    List<PurchaseWithBLOBs> selectPuchase();

    //批量荐购的查重
    List<Purchase> queryRepetition(List<Purchase> list);

    //单条荐购的查重
    Result selectRepeation(Purchase purchase);

    //页面的查重
    List<Purchase> queryPuchaseByTitle(String title);

    //改变审核状态
    Result shenhe(String id);

    //审核确认
    void purchaseComplete(String id);

    //  最后  荐购驳回
    void purchaseReject(String id);

    //单条荐购  查询
    Result selectPurchaseById(String id);



}
